package com.atguigu.gulimall.web;

import com.atguigu.gmall.common.exception.EnableAutoExceptionHandle;
import com.atguigu.gmall.common.interceptor.annotation.EnableUserAuthFeignInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//@SpringCloudApplication
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)//排除数据源自动配置
@EnableDiscoveryClient
@EnableCircuitBreaker
@EnableFeignClients(
        basePackages = "com.atguigu.gulimall.feign"
)
@EnableAutoExceptionHandle
@EnableUserAuthFeignInterceptor
public class WebMainApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebMainApplication.class, args);
    }
}
